#!/usr/bin/env python

def cat(f):
	with open(f) as g:
		for l in g.readlines():
			print(l[:-1])

def ls(f=None):
	from os.path import isfile, isdir
	if(f is None):
		from os import listdir
		print(listdir('.'))
	elif(isdir(f)):
		from os import listdir
		print(listdir(f))
	elif(isfile(f)):
		from os import stat
		print(stat(f))


